Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmis1000/vue-sfc-server-script
A random experiment to write http middleware directly in a vue sfc file
https://github.com/mmis1000/vue-sfc-server-script
Last synced: about 2 months ago
JSON representation
A random experiment to write http middleware directly in a vue sfc file
- Host: GitHub
- URL: https://github.com/mmis1000/vue-sfc-server-script
- Owner: mmis1000
- Created: 2023-05-07T14:12:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-07T14:32:01.000Z (over 1 year ago)
- Last Synced: 2024-04-14T22:53:55.879Z (9 months ago)
- Language: TypeScript
- Size: 51.8 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vue SFC server script
A actual working implementation of [this twitter post](https://twitter.com/_hyf0/status/1654521901631541251?s=20)
warning: this repo acts as a material of shit post. It isn't intended for someone to actually use in prod.
note: the typescript checking don't actually work because i don't care.```html
Submit Complaint
export const submitComplaint = async ({ user, complaint }) => {
console.log('someone added a complaint!', user, complaint)
redirect(`/complaint/finished`)
}```