Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criar rotas - Professor #7

Open
wendeljardel opened this issue Mar 11, 2020 · 0 comments
Open

Criar rotas - Professor #7

wendeljardel opened this issue Mar 11, 2020 · 0 comments
Assignees

Comments

@wendeljardel
Copy link
Collaborator

Crie um arquivo teachers.js na raiz do seu projeto e faça a validação de todos os campos utilizando keys e o constructor Object. Além disso, utilize o método writeFile da lib fs para gerar um arquivo json que irá conter um array de todos os professores cadastrados. Ao final desses dois processos (validação e salvamento), faça o redirecionamento para a página de listagem de professores.

@caio11pessoa caio11pessoa self-assigned this Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants