mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-12-22 23:59:08 +03:00
Added new targets to README.md
This commit is contained in:
parent
32740a65c4
commit
0dd3ab8838
2 changed files with 9 additions and 8 deletions
|
@ -19,8 +19,8 @@ And, you can learn informations about API in `APIDOCS.md`.
|
|||
## To Do (Backend, bug fixes) :
|
||||
- Middleware. For logged in etc.
|
||||
- Better error codes, example 400 for bad request
|
||||
- Ratelimit
|
||||
- Database change. (To MongoDB)
|
||||
- Better DB writing. Example, not `message.author.id`, `messsage.authorID`
|
||||
|
||||
## Roadmap
|
||||
- [x] User
|
||||
|
@ -33,6 +33,7 @@ And, you can learn informations about API in `APIDOCS.md`.
|
|||
- [ ] Singature & About me
|
||||
- [ ] Edit user
|
||||
- [ ] Messages
|
||||
- [x] Ratelimit for sending message
|
||||
- [x] Send message
|
||||
- [x] Delete message
|
||||
- [ ] Edit message
|
||||
|
|
14
index.js
14
index.js
|
@ -1,9 +1,10 @@
|
|||
const error = require("./errors/error.js");
|
||||
const session = require('express-session');
|
||||
const bodyParser = require('body-parser');
|
||||
const express = require('express');
|
||||
const fs = require("fs");
|
||||
const app = express();
|
||||
const error = require("./errors/error.js"),
|
||||
session = require('express-session'),
|
||||
bodyParser = require('body-parser'),
|
||||
port = process.env.PORT ?? 3000,
|
||||
express = require('express'),
|
||||
fs = require("fs"),
|
||||
app = express();
|
||||
|
||||
app.use(session({ secret: 'secret', resave: true, saveUninitialized: true }));
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
|
@ -16,5 +17,4 @@ for (const file of fs.readdirSync("./routes"))
|
|||
|
||||
app.all("*", (req, res) => error(res, 404, "We have not got this page."));
|
||||
|
||||
const port = process.env.PORT || 3000;
|
||||
app.listen(port, () => console.log("Akf-forum on port:", port));
|
Loading…
Reference in a new issue