-
Notifications
You must be signed in to change notification settings - Fork 10
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
[⚠️ WIP ⚠️] Api dev #45
Conversation
it allows for all routes in it to be pretended by a string
Move all this stuff to api.py so it is easier to edit and develop
Now make server take the api class from api.py add add to routes
No need to import api because it gets setup in server.py
Fixity those errors
Fix more flake8
Add option to disable prepend in CustomRouteDef, to allow paths not pretended with /api
Python is dumb I forgot to capitalize True
Once this is done I think I'll make server into its own "module" and start isolating different parts into like server.api, server.routes, and server.admin, and each can export a route def object, also commonly used functions could be in server.utils @mat-1 @JetStream0 Tho this should prob be finished + merged first |
Apparently sub apps are a thing 🤦, adding item to checklist:
I am leaving it unchecked |
Sub-apps are a thing, so I'm switching to do that, the app should use all the base apps properties, so none to set, maybe later we can add api middle ware for token verification tho.
I switched api to be a sub app just making sure it's setup in server.py as well
Fix my dum error, I forgot to specify the subapp path first
Remove that damn extra white space
Add wiki so docs are ezer, I'll turn md to html later This can be used so like https://repldex.com/wiki/api could show api docs
Oof spelling errors, I hate them
Any updates? |
Yep, I'm going to yeet this branch and make a new one off of master, then ill apply theese changes to it. Then actually finish it |
This is outdated, and changed nothing, a new branch based on master should be made. |
Closes #35
Api changes
progress: