• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
omgwtfbrblolttyl

omgwtfbrblolttyl

writeFileEndpoint

Public
Like
1
writeFileEndpoint
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://omgwtfbrblolttyl--75141a64279d11f09d52569c3dd06744.web.val.run
README.md

TODO:

  • get token from header
  • decode using secret from env
  • look up globs for user with id from token
  • get path from req.body
  • test path against all globs for user
  • if none pass, 403 with message
  • if any pass, write val to db with path as key (overwrite if exists)
  • return new value

Migrated from folder: fs/writeFileEndpoint

HTTP
  • main.tsx
    omgwtfbrblolttyl--75…44.web.val.run
Code
README.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.